import request from '../../utils/request';
import qs from "qs"
/**
 * 添加承台配筋
 * @param {*} project 
 */
export function addCapReinforcement(param){
    return request('/design/capReinforcement/add', {
        method: 'post',
        data: param
    });
}
/**
 * 添加垫石配筋
 * @param {*} project 
 */
export function addCushionStone(param){
    return request('/design/cushionStone/add', {
        method: 'post',
        data: param
    });
}
/**
 * 添加桩基配筋
 * @param {*} project 
 */
export function addPileReinforcement(param){
    return request('/design/pileReinforcement/add', {
        method: 'post',
        data: param
    });
}


/**
 * 钢筋字典
 * @param {*} project 
 */
export function ironList(param){
    return request('/design/iron/list', {
        method: 'post',
        data: param
    });
}
/**
 * 承台配筋列表
 * @param {*} project 
 */
export function capReinforcementList(param){
    return request('/design/capReinforcement/getCapReinforcementConfigureName', {
        method: 'post',
        data: param
    });
}
/**
 * 垫石配筋列表
 * @param {*} project 
 */
export function cushionStoneList(param){
    return request('/design/cushionStone/getConfigureNameList', {
        method: 'post',
        data: param
    });
}
/**
 * 桩基配筋列表
 * @param {*} project 
 */
export function pileReinforcementList(param){
    return request('/design/pileReinforcement/getConfigureNameList', {
        method: 'post',
        data: param
    });
}


/**
 * 删除承台配筋
 * @param {*} project 
 */
export function deleteCapReinforcement(params){
    return request('/design/capReinforcement/delete', {
        method: 'post',
        data:params,
        
    });
}
/**
 * 删除桩基配筋
 * @param {*} project 
 */
export function deletePileReinforcement(params){
    return request('/design/pileReinforcement/delete', {
        method: 'post',
        data:params,
    });
}
/**
 * 删除垫石配筋
 * @param {*} project 
 */
export function deleteCushionStone(params){
    return request('/design/cushionStone/delete', {
        method: 'post',
        data:params,
    });
}


/**
 * 承台配筋详情
 * @param {*} project 
 */

 
export function getCapReinforcementDetail(params){
    return request('/design/capReinforcement/getCapReinforcementDetail', {
        method: 'post',
        data:params
    });
}
/**
 * 垫石配筋详情
 * @param {*} project 
 */
export function getCushionStoneDetail(params){
    return request('/design/cushionStone/getDetailById', {
        method: 'post',
        data:params
    });
}
/**
 * 桩基配筋详情
 * @param {*} project 
 */
export function getCapReinforcementDetail2(params){
    return request('/design/pileReinforcement/getCapReinforcementDetail', {
        method: 'post',
        data:params
    });
}


/**
 * 修改承台配筋
 * @param {*} project 
 */
export function updateCapReinforcement(params){
    return request('/design/capReinforcement/update', {
        method: 'post',
        data:params
    });
}
/**
 * 修改垫石配筋
 * @param {*} project 
 */
export function updateCushionStone(params){
    return request('/design/cushionStone/update', {
        method: 'post',
        data:params
    });
}
/**
 * 修改垫石配筋
 * @param {*} project 
 */
export function updatePileReinforcement(params){
    return request('/design/pileReinforcement/update', {
        method: 'post',
        data:params
    });
}
/**
 *导出垫石配筋
 * @param {*} project 
 */
export function exportCapReinforcement(params){
    return request('/design/reinforcement/export', {
        method: 'get',
        responseType: "arraybuffer",
        params
    });
}
/**
 * 截面库树
 * @param {*} project 
 */
export function crossTree(params){
    return request('/design/crossSectionCategory/treeList', {
        method: 'post',
        data:params
    });
}
/**
 * 截面库模板
 * @param {*} project 
 */
export function crossTempList(params){
    return request('/design/crossSectionTemplate/list', {
        method: 'post',
        data:params
    });
}




